<template>

    <!-- 添加或修改对话框 -->
    <lam-dialog :title="title" :visible.sync="open" width="680px" append-to-body @close="cancel">
      <el-form ref="form" :model="form" :rules="rules" label-width="100px" :loading="loading" :disabled="formDisabled">
        <el-row>
          <el-col :span="12">
            <el-form-item label="日志序号" prop="scheduleJobId">
              <span>{{form.id}}</span>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="任务编号" prop="scheduleJobId">
              <span>{{form.scheduleJobId}}</span>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="任务名称" prop="jobName">
              <span>{{form.jobName}}</span>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="任务分组" prop="jobGroup">
              <span>{{form.jobGroup}}</span>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="con表达式" prop="cronExpression">
              <span>{{form.cronExpression}}</span>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="表达式描述" prop="cronExpDesc">
              <span>{{form.cronExpDesc}}</span>
            </el-form-item>
          </el-col>
          <el-col :span="24">
            <el-form-item label="执行类" prop="exeClass">
              <span>{{form.exeClass}}</span>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="执行方法" prop="exeMethod">
              <span>{{form.exeMethod}}</span>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="任务状态" prop="status">
              <JobStatus :value="form.status" :text="form.statusDictText" />
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="并发类型" prop="concurrentType">
              <span>{{form.concurrentTypeDictText}}</span>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="执行错误策略" prop="misfirePolicy">
              <span>{{form.misfirePolicyDictText}}</span>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="记录调度日志" prop="collectLog">
              <span>{{form.collectLogDictText}}</span>
            </el-form-item>
          </el-col>
          <el-col :span="24">
            <el-form-item label="执行参数" prop="exeParam">
              <el-input v-model="form.exeParam" type="textarea" autosize placeholder="" />
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="触发方式" prop="triggerType">
              <span>{{form.triggerTypeDictText}}</span>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="操作人" prop="createBy">
              <span>{{form.createBy}}</span>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="调度器" prop="createBy">
              <span>{{form.schedName}}</span>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="实例IP" prop="createBy">
              <span>{{form.instanceIp}}</span>
            </el-form-item>
          </el-col>
          <el-col :span="24">
            <el-form-item label="实例ID" prop="createBy">
              <span>{{form.instanceId}}</span>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="开始执行时间" prop="exeStartTime">
              <span>{{form.exeStartTime}}</span>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="执行结束时间" prop="exeEndTime">
              <span>{{form.exeEndTime}}</span>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="执行耗时" prop="exeCost">
              <span>{{form.exeCostText}}</span>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="执行结果" prop="exeStatus">
              <JobLogStatus :value="form.exeStatus" :text="form.exeStatusDictText" />
            </el-form-item>
          </el-col>
          <el-col :span="24">
            <el-form-item label="执行结果描述" prop="exeMsg">
              <el-input v-model="form.exeMsg" type="textarea" autosize placeholder="" />
            </el-form-item>
          </el-col>
          <el-col :span="24">
            <el-form-item label="备注信息" prop="remark">
              <span>{{form.remark}}</span>
            </el-form-item>
          </el-col>
        </el-row>
      </el-form>
      <div slot="footer" class="dialog-footer">
        <el-button @click="cancel">关  闭</el-button>
      </div>
    </lam-dialog>

</template>
<style scoped>
  .el-form-item{
    margin-bottom: 0px;
  }
</style>

<script>
import { EditMixin } from '@/components/mixins/EditMixin';
import JobLogStatus from './JobLogStatus';
import JobStatus from '../job/JobStatus';

export default {
  name: "EditScheduleJobLog",
  mixins:[EditMixin],
  components: {
    JobLogStatus,
    JobStatus
  },
  data() {
    return {
    };
  },
  created() {
  },
  methods: {

  }
};
</script>
